receive:receive_frame.o print_data.o frame_sql.o unix_socket.o protocol.o
	gcc receive_frame.o print_data.o frame_sql.o unix_socket.o protocol.o -o receive  -L/usr/lib/mysql -lmysqlclient
unix_socket:unix_socket.c
	gcc -c unix_socket.c
protocol:protocol.c
	gcc -c protocol.c
receive_frame.o:receive_frame.c
	gcc -c receive_frame.c
print_data.o:print_data.c
	gcc -c print_data.c
frame_sql.o:frame_sql.c
	gcc -c frame_sql.c -L/usr/lib/mysql -lmysqlclient
clean:
	rm *.o receive
